<% form_remote_tag :url => {:action => 'checkin', :person_id => person } do -%>
		    <span class="person-name-space">
				<%= link_to "#{person.full_name}", :controller => 'people', :action => 'show', :id => person %>
			</span>
			<span class="choose-group-cell">
				<%= collection_select ('attendance', 'meeting_id', @available_meetings, 'id', 'name', 
									   options = {:prompt => "– Choose Non-Default –"})%><%= error_message_on('attendance', 'meeting_id') %>
			</span>
			<span class="cell">
				<%= collection_select 'attendance', 'checkin_type_id', @checkin_types, 'id', 'name' %>
			</span>
			<span class="cell">
				<%= submit_tag 'Check In' %>
			</span>
		    <% end -%>
			<span class="cell">
				<% if person.active_attendances.count > 0 %>
				<%= button_to "Check Out", :action => 'checkout', :person_id => person %>
				<% end %>
			</span>
			<span class="cell">
				<% if person.active_attendances_by_instance(@curr_instance.id).length > 0 %>
					<%= link_to (image_tag 'delete_16x16.gif', :size => '16x16',
															   :border => 0,
															   :title => 'Delete this checkin record'), {:action => 'undo', :instance_id => @curr_instance.id, :person_id => person.id},
					 				  :confirm => "Are you sure you want to delete this checkin record? If #{person.first_name} attended the meeting, use the checkout button instead. Click OK to delete, CANCEL to do something else." %>
				<% end %>
			</span>
			<span class="cell">
				<% if person.active_attendances_other_instance_this_event(@curr_instance.id, @curr_instance.event.id).length > 0 %>
					<%= link_to (image_tag 'move_person.gif', :style => "vertical-align:middle;",
															   :size => '16x16',
															   :border => 0,
															   :title => "Move this person from #{person.active_attendances_other_instance_this_event(@curr_instance.id,@curr_instance.event.id).collect {|a| a.group_and_instance}.to_sentence} to #{@curr_instance.instance_type.name}"),
								{:action => 'move_checkin', :person_id => person} %>
				<% end %>
			</span>
			
			